/**
 * 利用Vue.use(对象)会自动调用 传入的对象的 install 方法，因此我们把要进行全局注册的组件统一进行封装注册
 */

import PageTools from '@/components/PageTools'
import UploadExcel from '@/components/UploadExcel'
import ImageUpload from '@/components/ImgUpload'
import ScreenFull from '@/components/ScreenFull'
import ThemePicker from '@/components/ThemePicker'
// 语言切换组件
import lang from '@/components/lang'
// 多标签页
import TagsView from '@/components/TagsView'

export default {
  install(Vue) {
    Vue.component('PageTools', PageTools) // 全局注册工具栏组件
    Vue.component('UploadExcel', UploadExcel) // 全局注册导入excel组件
    Vue.component('ImageUpload', ImageUpload)
    Vue.component('ScreenFull', ScreenFull)
    Vue.component('ThemePicker', ThemePicker)
    Vue.component('lang', lang)
    Vue.component('TagsView', TagsView)
  }
}
